package com.atguigu.config;

import com.atguigu.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@PropertySource(value = {"classpath:person.properties"})
@Configuration
public class MainConfigOfPropertyValue {
    @Bean
    public Person getPerson()
    {
        return new Person();
    }

}
